package com.diligent.cloud.sfc.resources;

import com.canny.commons.model.ObjectResult;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * MdmResource interface
 * 主数据资源
 * @author xf107278
 * @date 3/27/2020
 */
@RequestMapping("/sfc")
public interface MdmResource {

    @GetMapping("/mat-image/{matCode}/{systemId}")
    @ApiOperation(value = "主数据/获取型号缩略图", notes = "主数据/获取型号缩略图",tags = {"主数据"})
    ResponseEntity<ObjectResult> getMouldPic(@ApiParam(name = "matCode", value = "物料代码", type = "String") @PathVariable(
            "matCode") String matCode,
                                             @ApiParam(name = "systemId", value = "账套代码", type = "String") @PathVariable(
                                               "systemId") String systemId);
}
